package com.ljfresh.customer.utils.udesk;

/**
 * Created by z on 2018/12/13.
 * erp接口名
 */
public class UDeskConst {

    /**
     *
     */
    public static final String UDESK_SECRETKEY = "d8da33e18daf5a62f2e73041295778ed";


    /**
     *
     * 通用路径 base
     */
    public static final String TICKETS_BASE_URL = "https://freshlejia.udesk.cn/open_api_v1/tickets/";


    public static final String CUSTOMER_CELLPHONE = "cellphone";

    private String UDESK_DOMAIN = "freshlejia.udesk.cn";

    /**
     * 鉴权 Token 接口地址  login(POST)
     */
    public static final String LOGIN_URL = "https://freshlejia.udesk.cn/open_api_v1/log_in";

    /**
     * 创建工单 接口地址  tickets(POST)
     */
    public static final String TICKETS_CREATE_URL = "https://freshlejia.udesk.cn/open_api_v1/tickets";

    /**
     * 获取工单详情 接口地址  detail(GET)
     */
    public static final String DETAIL_TICKET_URL = "https://freshlejia.udesk.cn/open_api_v1/tickets/detail";

    /**
     * 更新工单 接口地址  /:id (PUT )
     */
    public static final String UPDATE_TICKET_URL = "https://freshlejia.udesk.cn/open_api_v1/tickets/";

    /**
     * 删除工单 接口地址  destroy_ticket(delete)
     */
    public static final String DESTROY_TICKET_URL = "https://freshlejia.udesk.cn/open_api_v1/tickets/destroy_ticket";

    /**
     * 获取工单过滤器列表 接口地址  filters(get )
     */
    public static final String FILTERS_URL = "https://freshlejia.udesk.cn/open_api_v1/tickets/filters";

    /**
     * 获取工单过滤器列表 接口地址  filters(get )
     */
    public static final String TICKETS_IN_FILTERS_URL = "https://freshlejia.udesk.cn/open_api_v1/tickets/tickets_in_filter";

    /**
     *
     * 上传附件  upload_file(post )
     */
    public static final String TICKETS_UPLOAD_FILE_URL = "https://freshlejia.udesk.cn/open_api_v1/tickets/upload_file";

    /**
     *
     * 上传附件到工单回复  upload_file(post )
     */
    public static final String TICKETS_UPLOAD_FILE_FOR_REPLY_URL = "https://freshlejia.udesk.cn/open_api_v1/tickets/upload_file_for_reply";

    /**
     *
     * 客"户"回复  upload_file(post )
     */
    public static final String TICKETS_CUSTOMER_REPLY_URL = "https://freshlejia.udesk.cn/open_api_v1/tickets/customer_reply";

    /**
     *
     * 获取工单回复  upload_file(post )
     */
    public static final String REPLIES = "/replies";

    /**
     *
     * 获取工单模板列表  ticket_templates(get)
     */
    public static final String TICKET_TEMPLATES_URL = "https://freshlejia.udesk.cn/open_api_v1/tickets/ticket_templates";

    /**
     *
     * 创建客户  customers(post)
     */
    public static final String CUSTOMER_CREATE_URL = "https://freshlejia.udesk.cn/open_api_v1/customers";

    /**
     *
     * 获取客户详情  customers/get_customer(get)
     */
    public static final String CUSTOMER_DETAIL_URL = "https://freshlejia.udesk.cn/open_api_v1/customers/get_customer";

    /**
     *
     * 获取客户记录  customers/feeds(get)
     */
    public static final String CUSTOMER_RECORD_URL = "https://freshlejia.udesk.cn/open_api_v1/customers/feeds";

    /**
     * UDesk 管理员邮箱
     */
    public static final String UDESK_ADMIN_EMAIL = "281721414@qq.com";

    /**
     * UDesk TOKEN
     */
    public static final String UDESK_API_TOKEN = "6100dac1-0792-4f33-a899-43d67bfcc16b";

    /**
     *UDesk 签名算法版本
     */
    public static final String SIGN_VERSION = "v2";



    public static final String getListUrl = "https://freshlejia.udesk.cn/open_api_v1/tickets";


}
